from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import SuiteViewSet, RunResultViewSet, ExecuteTestView, TestReportView

router = DefaultRouter()
router.register(r'suites', SuiteViewSet)
router.register(r'results', RunResultViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('execute/', ExecuteTestView.as_view(), name='execute-test'),
    path('reports/<int:run_id>/', TestReportView.as_view(), name='test-report'),
] 